<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>跳动的心</title>
</head>

<style>
*{
    margin: 0;
    padding: 0;
}

body,html{
    background: pink;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


.heard{
    width: 220px;
    height: 220px;
    margin-top: 200px;
    position: relative;
    right: 0;
    bottom:0;
    transform: rotate(45deg);
    background: red;
    box-shadow: 0 0 30px  red;
  animation: heardjump  1s  alternate infinite;
}
.heard::before{
    content: "";
    width: 220px;
    height: 100px;
    position: absolute;
    top: -99px;
    border-radius: 100px 100px 0 0 ;
    box-shadow: 0 0 30px  red;
    background: red;
}

.heard::after{  
    content: "";
    width:100px;
    height:220px;
    position: absolute;
    bottom: 0 ;
    left: -99px;
    border-radius: 100px 0 0 100px ;
    box-shadow: 0 0 30px  red;
    background: red;
}

@keyframes  heardjump{
    0%{
        transform: rotate(45deg) scale(0.6);
    }
    100%{
        transform: rotate(45deg) scale(1.2);
    }   
}


</style>


<body>
    <div class="heard">
    </div>
</body>

</html>